/*flexbox样式*/
body {

  /*设置body为伸缩容器*/
  display: -webkit-box; /*老版本：iOS 6-, Safari 3.1-6*/
  display: -moz-box; /*老版本：Firefox 19- */
  display: -ms-flexbox; /*混合版本：IE10*/
  display: -webkit-flex; /*新版本：Chrome*/
  display: flex; /*标准规范：Opera 12.1, Firefox 20+*/

  /*伸缩项目换行*/
  -moz-box-orient: vertical;
  -webkit-box-orient: vertical;
  -moz-box-direction: normal;
  -moz-box-direction: normal;
  -moz-box-lines: multiple;
  -webkit-box-lines: multiple;
  -webkit-flex-flow: column wrap;
  -ms-flex-flow: column wrap;
  flex-flow: column wrap;
}

/*实现stick footer效果*/
.main {
  position: absolute;
  width: 100%;
  height: calc(100% - 160px);
  left: 0;
  bottom: 0;
  /*height: 100%;*/
  /*background: #f4f4f4;*/
  /*display: -moz-box;*/
  /*display: -webkit-box;*/
  /*display: -ms-flexbox;*/
  /*display: -webkit-flex;*/
  display: flex;

  /*-webkit-box-flex: 1;*/
  /*-moz-box-flex: 1;*/
  /*-ms-flex: 1;*/
  /*-webkit-flex: 1;*/
  /*flex: 1;*/

  /*-moz-box-orient: horizontal;*/
  /*-webkit-box-orient: horizontal;*/
  /*-moz-box-direction: normal;*/
  /*-webkit-box-direction: normal;*/
  /*-moz-box-lines: multiple;*/
  /*-webkit-box-lines: multiple;*/
  /*-ms-flex-flow: row wrap;*/
  /*-webkit-flex-flow: row wrap;*/
  /*flex-flow: row wrap;*/

  /*-moz-box-align: stretch;*/
  /*-webkit-box-align: stretch;*/
  /*-ms-flex-align: stretch;*/
  /*-webkit-align-items: stretch;*/
  /*align-items: stretch;*/
}
.header .right-op {
  position: relative;

}
.down-change-table {
  height: 2.5em;
  line-height: 2.5em;
  background: #f39801;
  color: #fff;
}
.login-out {
  background: #333;
  color: #fff;
}
.search {
  background: #dadadd;
  height: 4em;
  line-height: 4em;
  text-align: center;
  color: #666;
  margin-top: 3.8em;
  position: relative;
}


.search input {
  width: 90%;
  height: 2.5em;
  line-height: 2.5em;
  border-radius: 3px;
  background: #f4f4f4;
  border: 1px solid #f4f4f4;
  outline: none;
  padding-left: 10px;
  /*margin-top: 0.7em;*/
  -webkit-appearance: none;
}

.search input[placeholder] {
  text-align: center
}

.class-list {
  /*width: 7em;*/
  width:25%;
  overflow-y: scroll;
  /*margin-bottom: 5em;*/
  /*添加的样式*/
  /*background: #e0e1e2;*/
  background: #eee;
  box-shadow: 1px 0 0 0 #e8e8e8;
  padding-left: 1px;
  /*font-size: 1.2rem;*/
}
.class-item {
  padding: 0 0 0 5px;
  position: relative;
}

.class-name {
  display: inline-block;
  padding: 1em 0;
  /*width: 5em;*/
  line-height: 1.5em;
}

.class-item.active {
  /*background: #f39801;*/
  /*color: #fff;*/
  background: #fff;
  color: #186992;
  border-left: 3px solid #147baf;
}
.class-item:last-child{
  margin-bottom: 5em;
}

.class-count {
  /*right: 0.9em;*/
}

.class-count i {
  position: absolute;
  display: inline-block;
  font-style: normal;
  border-radius: 50%;
  right: 2px;
  top: 2px;
  text-align: center;
  vertical-align: middle;
  z-index: 9;
  min-width: 16px;
  padding: 3px;
  background: #ff3860;
  color: #fff;
  font-weight: 500;
  font-size: 14px;
}

.class-active i {
  background: #ff3860 !important;
  color: #fff !important;
}

.menu-list {
  flex: 1;
  padding-left: 1px;
  overflow-y: scroll;
  margin-bottom: 4em;
}

.menu-item {
  background: #f4f4f4;
  /*box-shadow: 0px 0 3px 0px #bab4b4;*/
  /*min-height: 6em;*/
  /*margin-bottom: 10px;*/

  display: -moz-box;
  display: -webkit-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
}

.menu-item .left {
  /*width: 5em;*/
  margin: 10px;

  width: 6em;
  height: 5em;
  border: 1px solid #f5f5f5;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}

.menu-item .left img {
  width: 100%;
  height: 5em;
  border: 1px solid #f5f5f5;
  border-radius: 5px;
}

.menu-item .right {
  flex: 1;
  position: relative;
}

.menu-item .right .title {
  height: 3em;
  line-height: 3em;
  padding-top: 10px;
}
.price{
  font-size: 0.9em;
}
.price .yuan{
  font-size: 0.6em;
}
.price .money {
  color: #f39801;
  font-weight: bold;
  padding-right: 5px;
  height: 2em;
  font-size: 1.2em;
  margin-top: 5px;
}
/*菜单加减餐菜操作按钮样式*/
.opers{
  position: absolute;
  top: 50%;
  right: 1rem;
}
.opers .mom{
  font-size: 1.5rem;
  color: rgba(225,165,0,0.9);
}
.opers .mom.mop{
  /*color: #3385ff;*/
  color: #f39801;
}
.opers .type2 .choose{
  display: inline-block;
  padding: 5px 10px;
  background: orange;
  color: #fff;
}
.opers .type2 .bol-label{
  position: absolute;
  top: -12px;
  right: -12px;
}
.bol-label{
  min-width: 18px;
  font-size: 16px;
  padding: 3px;
  border-radius: 50%;
  background: #FF5722;
  color: #fff;
  text-align: center;
}

.shopping-cart {
  display: -moz-box;
  display: -webkit-box;
  display: -ms-flexbox;
  display: -webkit-flex;
  display: flex;
  position: fixed;
  bottom: 0;
  width: 100%;

}

.cart-img {
  width: 6.6em;
  text-align: center;
}
.cart-round {
  background: #f39801;
  border-radius: 50%;
  width: 4.5em;
  height: 4.5em;
  margin-left: 1em;
  margin-bottom: 1em;
}
.cart-round img {
  margin-top: 0.8em;
  width: 2.5em;
}

.layer-open{
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
}
.layer-open .content{
  width: 80%;
  margin: 0 auto;

  animation: scaleToBig 0.3s;
}

/*点餐菜品样式平板端*/
.food-list-for-pad{
  /*max-height: 600px;*/
  list-style: none;
  overflow: auto;
}
.food-list-for-pad li{
  float: left;
  /*font-size: 15px;*/
  padding: 0.5em 1em 0.5em 0;

  /*box-shadow: 0 1px 0 0 #ddd;*/
}
.food-list-for-pad li .imgBox{
  width: 6em;
  height: 5em;
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
}
.food-list-for-pad li a{
  color: #999;
  display: inline-block;
  position: relative;
}
.food-list-for-pad li:hover a{
  color: #333;
}
.food-list-for-pad li a.active{
  /*color: #333;*/
  color: #FFB800;
}

.food-list-for-pad li .layui-badge{
  padding: 4px 10px;
  cursor: pointer;
  background: orange;
  font-size: 0.9em;
  color: #fff;
}
